package com.yxw.live_vod_boot.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("yx_live_comment")
@ApiModel(value = "直播评论实体类", description = "直播评论实体类")
public class YxLiveCommentEntity {

    @TableId(value = "comment_id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "评论ID")
    private String commentId;

    @TableField("live_id")
    @ApiModelProperty(value = "直播ID")
    private String liveId;

    @TableField("user_id")
    @ApiModelProperty(value = "评论人ID")
    private String userId;

    @TableField("user_name")
    @ApiModelProperty(value = "评论人名称")
    private String userName;

    @TableField("to_user_id")
    @ApiModelProperty(value = "被@用户ID")
    private String toUserId;

    @TableField("to_user_name")
    @ApiModelProperty(value = "被@用户名称")
    private String toUserName;

    @TableField("comment")
    @ApiModelProperty(value = "评论内容")
    private String comment;

    @TableField("comment_type")
    @ApiModelProperty(value = "评论类别(1=评论，2=@)")
    private Integer commentType;

    @TableField("comment_time")
    @ApiModelProperty(value = "发表评论时间")
    private Date commentTime;
}